package org.paraj.misc;

public  class StopWatch{
    Long total = 0L;
    Long start;
    public void start(){
        start = System.currentTimeMillis();
    }

    public long stop(){
        long taskTime = System.currentTimeMillis() - start;
        total += taskTime;
        return taskTime; 
    }

    public Double totalSeconds(){
        return total.doubleValue() / 1000;
    }
}
